package com.luoqiz.feign.service;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.luoqiz.common.httpEntity.PageResponse;
import com.luoqiz.common.testEntity.Member;
import com.luoqiz.feign.config.FeignLogConfiguration;

@FeignClient(name = "feign", url = "http://127.0.0.1:10005", configuration = FeignLogConfiguration.class)
public interface SystemServiceFeign {

	@GetMapping("/cache/listMember")
	public PageResponse<Integer, List<Member>> listMember(@RequestParam int length);

	@GetMapping("/cache/dict")
	public String getdict(@RequestParam String username);
}
